package com.mallcloud.mall.product.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "AttrModel", description = "属性信息")
@Data
@TableName(value = "P_ATTR", autoResultMap = true)
public class AttrModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "attr id")
    private Long attrId;

    @ApiModelProperty(value = "店铺Id")
    private Long shopId;

    @ApiModelProperty(value = "属性名称")
    private String name;

    @ApiModelProperty(value = "属性描述")
    private String description;

    @ApiModelProperty(value = "0:不需要，1:需要")
    private Integer searchType;

    @ApiModelProperty(value = "属性类型 0:销售属性，1:基本属性")
    private Integer attrType;
}
